package service;

import com.github.pagehelper.PageInfo;
import entity.LayRequest;
import entity.SaleOpportunity;

import java.util.List;
import java.util.Map;

/**
 * @author lay
 * @date 2020/6/18 9:22
 */
public interface SaleService {

    List<SaleOpportunity> selectAll();

    int insert(SaleOpportunity saleOpportunity);

    void batchDelete(Integer[] ids);

    int delete(Integer id);

    SaleOpportunity selectById(Integer id);

    int update(SaleOpportunity saleOpportunity);

    PageInfo<SaleOpportunity> selectByPage(Map<String,Object> map);

    PageInfo<SaleOpportunity> selectByPage(LayRequest layRequest);

}
